<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
</head>
<body>
<div class="header_con">
    <div class="header">
        <div class="welcome fl">欢迎来到天天生鲜!</div>
        <div class="fr">
            <div th:if="${user!=null}" class="login_info fl" style="display: block">
                欢迎您：<em th:text="${user.userName}"></em>
            </div>
            <div th:unless="${user}"class="login_btn fl">
                <a href="/login">登录</a>
                <span>|</span>
                <a href="/register">注册</a>
            </div>
            <div class="user_link fl">
                <span>|</span>
                <a href="/user_center_info">用户中心</a>
                <span>|</span>
                <a href="/fCart">我的购物车</a>
                <span>|</span>
                <a href="/user_center_order">我的订单</a>
            </div>
        </div>
    </div>
</div>
</body>
</html>